import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import { createPinia } from 'pinia'
import './permission' // 路由守卫
import Directives from '@/directive' // 自定义指令
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
// import 'animate.css'
import '@/style/index.scss'
import SvgIcon from '@/components/SvgIcon/index.vue'

// 引入svg注册脚本
import 'virtual:svg-icons-register'

const app = createApp(App)
app.component('svg-icon', SvgIcon)
app.use(ElementPlus).use(router).use(createPinia()).use(Directives)

app.mount('#app')
